package com.example.cinema;

public class Movie {
    private String id;
    private String name;
    private String director;
    private String actor;
    private String intro;
    private int duration; // 分钟
    private double score;

    public Movie(String id, String name, String director, String actor, String intro, int duration, double score) {
        this.id = id;
        this.name = name;
        this.director = director;
        this.actor = actor;
        this.intro = intro;
        this.duration = duration;
        this.score = score;
    }

    // getter和setter
    public String getId() { return id; }
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
    public String getDirector() { return director; }
    public String getActor() { return actor; }
    public String getIntro() { return intro; }
    public int getDuration() { return duration; }
    public double getScore() { return score; }
}
